package org.springmvc.web.bind.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface RequestMapping {

    /**
     * 用来指定请求路径
     * @return
     */
    String value();

    /**
     * 用来指定请求方式
     * @return
     */
    RequestMethod method();
}
